home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_u_z / wt_jan92.zip / SHAW.ZIP / DIALOG.H < prev    next >
C/C++ Source or Header  |  1991-11-04  |  885b  |  48 lines

  1. // dialog.h RHS 10/15/91
  2.  
  3. #if !defined(DIALOG_H)
  4. #define DIALOG_H
  5.  
  6. #include"winapp.h"
  7.  
  8. class WinDialog : public WinApplication
  9.     {
  10.     FARPROC lpDialog;
  11.     int results;
  12.     char *name;
  13.     HWND hWndParent;
  14.  
  15. public:
  16.     HWND WHandle;
  17.  
  18.     WinDialog(char *dialogname, FARPROC DialogProc, HWND hWnd);
  19.     WinDialog(void)
  20.         {
  21.         Init(NULL,(FARPROC)NULL,0);
  22.         }
  23.  
  24.     int Results(void)
  25.         {
  26.         return results;
  27.         }
  28.     void SetProc(FARPROC DialogProc);
  29.     void SetName(char *newname)
  30.         {
  31.         name = newname;
  32.         }
  33.     void SetParent(HWND newhWnd)
  34.         {
  35.         hWndParent = newhWnd;
  36.         }
  37.     HWND GetParent(void)
  38.         {
  39.         return hWndParent;
  40.         }
  41.     void Init(char *name,FARPROC DialogProc,HWND hWnd);
  42.     int Run(void);
  43.     void SetDlgIcon(HICON hIcon);
  44.     };
  45.  
  46. #endif
  47.  
  48.